import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class formatDate {
    public static void main(String[] args) throws ParseException {
        myTime1();
    }
    private static void myTime1() throws ParseException {
        SimpleDateFormat date=new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
        Date date1=new Date();
        String format=date.format(date1);
        System.out.println(format);

    }
}
